package tree;

/**
 * @author justnow
 * Created on 2020-10-15
 * Description
 */
public class SwardOffer27 {
    public TreeNode mirrorTree(TreeNode root) {
        if (root == null) {
            return null;
        }
        TreeNode temp = mirrorTree(root.left);
        root.left = mirrorTree(root.right);
        root.right = temp;
        return root;
    }
}
